# Sid Meier's Civilization 4
# Copyright Firaxis Games 2005
#
# < edited by the ViSa Modpack Team >
#
import CvUtil
import CvViSaEventManager
from CvPythonExtensions import *

normalEventManager = CvViSaEventManager.CvViSaEventManager()

def getEventManager():
	return normalEventManager

def onEvent(argsList):
	'Called when a game event happens - return 1 if the event was consumed'
	return getEventManager().handleEvent(argsList)

def applyEvent(argsList):
	context, playerID, netUserData, popupReturn = argsList
	return getEventManager().applyEvent(argsList)

def beginEvent(context, argsList=-1):
	return getEventManager().beginEvent(context, argsList)
